﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace STF.OrangeDog.Model
{
    public class HSeo:BaseModel
    {
        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(50), Column(TypeName = "varchar(50)")]
        [Display(Name = "优化名称")]
        public string Title { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(1000), Column(TypeName = "varchar(1000)")]
        [Display(Name = "优化关键字")]
        public string Keyword { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(1000), Column(TypeName = "varchar(1000)")]
        [Display(Name = "优化描述")]
        public string Description { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "网站菜单编号")]
        [ForeignKey(nameof(HWebMenu))]
        public int WebMenuId { get; set; }
    }
}
